<div class="topPaginator">
    <span class="signsName">Checkout</span>
</div>
<div id="signShow" class="custom">
    <div id="signShowContent" class="comerce">
        <div class="blocHead">
            <div class="rightArrowLeft"></div>
            <span class="blueMessege">Confirm Order and Enter Payment to Finalize Order!</span>
        </div>
        <div id="orderRewie">
            <table>
                <thead>
                    <tr>
                        <td class="itemName">Item</td>
                        <td class="checkBoxes">Quantity</td>
                        <td class="checkBoxes">Remove</td>
                        <td class="amountBoxes">Amount</td>
                    </tr>
                </thead>
                <tbody>
                    <? $subTotal = 0;
                    foreach($orderItems as $key=>$value):

                        $subTotal+=$value['price']?>
                      <tr>
                                <td class="itemName" ><?=$value['name'];?></td>
                                <td class="checkBoxes">
                                    <input type="text" value="1" class="quantyty" dataSection="<?=$value['section']?>" data="<?=$value['id']?>" />
                                </td>
                                <td class="checkBoxes">
                                    <input type="checkbox" value="1" class="quantyty"  />
                                </td>
                                <td class="amountBoxes">
                                    <?='$'.$value['price'];?>
                                </td>
                        </tr>
                    <?endforeach;?>
                    <tr class="gray">
                        <td colspan=3 align=right class="subtotalTd">Subtotal:</td>
                        <td class="amountBoxes"><?='$'.$subTotal;?></td>
                    </tr>
                    <tr class="gray">
                        <td colspan=3 align=right class="subtotalTd"><?=$delivery['delivery'];?>:</td>
                        <td class="amountBoxes"><?='$'.$delivery['deliveryCost'];?></td>
                    </tr>
                    <?if ($coupons):
                        $subTotal -= $coupons['price'];?>
                        <tr class="gray">
                            <td colspan=3 align=right class="subtotalTd"><?=$coupons['name'];?>:</td>
                            <td class="amountBoxes"><?='-$'.$coupons['price'];?></td>
                        </tr>
                    <?endif;?>
                    <tr class="gray">
                        <td colspan=3 align=right class="subtotalTd">Total:</td>
                        <td class="amountBoxes">$ <?=$delivery['deliveryCost']+$subTotal;?></td>
                    </tr>
                </tbody>
            </table>
            <form id="testForm" method="post" action="">
            <div id="payPalInfo">
                <span class="newLine head">Pay with PayPal</span>
                <span class="newLine"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/general/why-paypal-outside" target="blank">Learn more</a> 
                    about PayPal - the safer, easier way to pay.</span>
                <img class="payPalImg" src="/images/main/paypal.png" alt="payPal secure payment" />
            </div>
            <div class="signShowButton placeOrder">
                <div class="rightArrowLeft"></div>
                <a href="#" id="orderLink">
                    <span class="blueMessege">PAY ORDER VIA PAYPAL</span>
                </a>
            </div>
            </form>
        </div>
        <?=$payPalForm;?>
        <?if (isset($errors)):?>
            <div id="cardErrors">
                <?=$errors;?>
            </div>
        <?endif;?>
    </div>
</div>
<div id="middleBlock">
    <?=$midleBlock;?>
</div>
